package com.msi.visualization;

import java.util.List;

import org.apache.log4j.Logger;

import com.msi.Graph;
import com.msi.Vertex;

public abstract class MsiColor {
    protected static final Logger log = Logger.getLogger(MsiColor.class);
    protected long computationTime;
    protected int diff;
    protected Graph graph;
    protected List<Vertex> vertexList;
    protected int numberOfColors;

    public abstract void color();

    public long getComputationTime() {
        return computationTime;
    }

    public int getNumberOfColors() {
        return numberOfColors;
    }

    protected void printVertexList(List<Vertex> vertices) {
        for (Vertex v : vertices) {
            v.print();
            System.out.println("");
        }
    }

    public void setGraph(Graph g) {
        graph = g;
    }
}
